package dao.sysUser;

import org.apache.ibatis.annotations.Param;
import pojo.SysUser;

import java.util.List;

/**
 * @author 崔书健
 * @date 2024/7/18
 */
public interface SysUserMapper {

    List<SysUser> selectSysUserList(SysUser sysUser);

    /**
     * 保存用户
     * @param sysUser
     * @return
     */
    public int add(SysUser sysUser);

    int upd(SysUser sysUser);

    int del(Integer id);

    public int deleteByRoleIdInt(@Param("roleId")Integer rid);

    SysUser queryAccountAndPwd(@Param("account")String account, @Param("password")String password);

    public List<SysUser> selectPageList(@Param("realName")String realName,@Param("roleId")Integer roleId,@Param("pageBegin")Integer pageBegin,@Param("pageSize")Integer pageSize);

    /**
     * 统计数据数量数量的方法
     * @return
     */
    public int count(@Param("realName")String queryRealName, @Param("roleId")Integer queryRoleId);
}
